import java.util.Scanner;

public class test1 {
    //判断素数
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字:");
        int n = sc.nextInt();
        boolean flag = true;

        for(int i = 2; i < n; ++i) {

            if (n % i == 0) {
                flag = false;
                break;
            }
        }
        if (flag) {
            System.out.print("是素数 ");
        }else{
            System.out.println("不是素数");
        }
    }
}
